﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 嘉里用户信息
/// </summary>
[SugarTable("kerryplususerinfos","嘉里用户信息")]
[Tenant("1300000000001")]
public class Kerryplususerinfo  : EntityBase
{
    /// <summary>
    /// UnionId
    /// </summary>
    [SugarColumn(ColumnName = "UnionId", ColumnDescription = "UnionId", Length = 200)]
    public string? UnionId { get; set; }
    
    /// <summary>
    /// OpenId
    /// </summary>
    [SugarColumn(ColumnName = "OpenId", ColumnDescription = "OpenId", Length = 200)]
    public string? OpenId { get; set; }
    
    /// <summary>
    /// AppId
    /// </summary>
    [SugarColumn(ColumnName = "AppId", ColumnDescription = "AppId", Length = 200)]
    public string? AppId { get; set; }
    
    /// <summary>
    /// BrandId
    /// </summary>
    [SugarColumn(ColumnName = "BrandId", ColumnDescription = "BrandId", Length = 200)]
    public string? BrandId { get; set; }
    
    /// <summary>
    /// LbsId
    /// </summary>
    [SugarColumn(ColumnName = "LbsId", ColumnDescription = "LbsId", Length = 200)]
    public string? LbsId { get; set; }
    
    /// <summary>
    /// 用户ID
    /// </summary>
    [SugarColumn(ColumnName = "UserId", ColumnDescription = "用户ID", Length = 200)]
    public string? UserId { get; set; }
    
    /// <summary>
    /// 手机号
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "PhoneNumber", ColumnDescription = "手机号", Length = 200)]
    public string PhoneNumber { get; set; }
    
    /// <summary>
    /// 积分数
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Currnentintegral", ColumnDescription = "积分数", Length = 65, DecimalDigits=30 )]
    public decimal Currnentintegral { get; set; }
    
    /// <summary>
    /// 昵称
    /// </summary>
    [SugarColumn(ColumnName = "NickName", ColumnDescription = "昵称", Length = 200)]
    public string? NickName { get; set; }
    
    /// <summary>
    /// 今日签到
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "TodaySign", ColumnDescription = "今日签到")]
    public bool TodaySign { get; set; }
    
    /// <summary>
    /// 会员号
    /// </summary>
    [SugarColumn(ColumnName = "VipCode", ColumnDescription = "会员号", Length = 200)]
    public string? VipCode { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "State", ColumnDescription = "状态")]
    public int State { get; set; }
    
    /// <summary>
    /// 最后修改时间
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "LastTime", ColumnDescription = "最后修改时间")]
    public DateTime LastTime { get; set; }
    
    /// <summary>
    /// Token
    /// </summary>
    [SugarColumn(ColumnName = "Token", ColumnDescription = "Token", Length = 200)]
    public string? Token { get; set; }
    
    /// <summary>
    /// RefreshToken
    /// </summary>
    [SugarColumn(ColumnName = "RefreshToken", ColumnDescription = "RefreshToken", Length = 200)]
    public string? RefreshToken { get; set; }
    
    /// <summary>
    /// Token更新时间
    /// </summary>
    [SugarColumn(ColumnName = "TokenUpdateTime", ColumnDescription = "Token更新时间")]
    public DateTime? TokenUpdateTime { get; set; }
    
    /// <summary>
    /// 最后签到时间
    /// </summary>
    [SugarColumn(ColumnName = "LastSignDateTime", ColumnDescription = "最后签到时间")]
    public DateTime? LastSignDateTime { get; set; }
    
    /// <summary>
    /// 下次签到时间
    /// </summary>
    [SugarColumn(ColumnName = "NextSignDateTime", ColumnDescription = "下次签到时间")]
    public DateTime? NextSignDateTime { get; set; }
    
    /// <summary>
    /// 租户Id
    /// </summary>
    [SugarColumn(ColumnName = "TenantId", ColumnDescription = "租户Id")]
    public long? TenantId { get; set; }
    
}
